package com.zto.sch.base.normal.validator;

import lombok.Data;

/**
 * @program: sch-diy-parent
 * @description:
 * @author: sch
 * @create: 2021-06-30 18:13
 **/
@Data
public class BizException extends Exception {
    private Integer code;
    private String messaeg;

    public BizException() {
    }

    public BizException(Integer code, String messaeg) {
        this.code = code;
        this.messaeg = messaeg;
    }

    public BizException(String message, Integer code, String messaeg) {
        super(message);
        this.code = code;
        this.messaeg = messaeg;
    }

    public BizException(String message, Throwable cause, Integer code, String messaeg) {
        super(message, cause);
        this.code = code;
        this.messaeg = messaeg;
    }

    public BizException(Throwable cause, Integer code, String messaeg) {
        super(cause);
        this.code = code;
        this.messaeg = messaeg;
    }

    public BizException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, Integer code, String messaeg) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.code = code;
        this.messaeg = messaeg;
    }
}
